﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Code
{
    /// <summary>
    /// 父节点 子节点
    /// 
    /// </summary>
    [Serializable]
    [DataContract]
    public class ChildrenModel
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [DataMember(Order = 0,EmitDefaultValue=false)]
        
        public string Name { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [DataMember(Order = 1,EmitDefaultValue=false)]
        public string PassWord { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [DataMember(Order = 2, EmitDefaultValue = false)]
        public int? Age { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DataMember(Order = 3, EmitDefaultValue = false)]
        public DateTime? CreateTime  { get; set; }


        /// <summary>
        /// 子对象列表
        /// </summary>
        [DataMember(Order = 4, EmitDefaultValue = false)]
        public List<ChildrenModel> Children { get; set; }

        /// <summary>
        /// 是否最后元素
        /// </summary>
        [DataMember(Order = 5, EmitDefaultValue = false)]
        public bool? IsEnd { get; set; }


    }

}
